<?php
/*include("/usr/local/apache2/htdocs/tile/lib/Bulletin.php");
include('log4php/Logger.php');
$cfgfile = "/usr/local/apache2/htdocs/tile/admin/bootstrap/conf/config.ini";
$defarray = parse_ini_file($cfgfile, 1);
$qlogtag = $defarray["Bulletin"]['qlogtag'];
Logger::configure($defarray["Bulletin"]['qlogcfg']);
$logger = Logger::getLogger($qlogtag);
$host = $defarray["Bulletin"]["host"];
$user = $defarray["Bulletin"]["user"];
$pass = $defarray["Bulletin"]["pass"];
$db = $defarray["Bulletin"]["db"];
$dbh = new Sqlexecutor($host, $user, $pass, $db);
$s = new Bulletin($dbh);
  $res = $s->publishByID("4");
*/
/*include("/usr/local/apache2/htdocs/tile/lib/Feedback.php");
include('log4php/Logger.php');
$cfgfile = "/usr/local/apache2/htdocs/tile/admin/bootstrap/conf/config.ini";
$defarray = parse_ini_file($cfgfile, 1);
$qlogtag = $defarray["Feedback"]['qlogtag'];
Logger::configure($defarray["Feedback"]['qlogcfg']);
$logger = Logger::getLogger($qlogtag);
$host = $defarray["Feedback"]["host"];
$user = $defarray["Feedback"]["user"];
$pass = $defarray["Feedback"]["pass"];
$db = $defarray["Feedback"]["db"];
$dbh = new Sqlexecutor($host, $user, $pass, $db);
$s = new Feedback($dbh);
$res = $s->replyByID("我错了 别投诉我了", 8);
 */
///*
include("/usr/local/apache2/htdocs/tile/lib/Login.php");
include('log4php/Logger.php');
$cfgfile = "/usr/local/apache2/htdocs/tile/admin/bootstrap/conf/config.ini";
$defarray = parse_ini_file($cfgfile, 1);
$qlogtag = $defarray["Login"]['qlogtag'];
Logger::configure($defarray["Login"]['qlogcfg']);
$logger = Logger::getLogger($qlogtag);
$host = $defarray["Login"]["host"];
$user = $defarray["Login"]["user"];
$pass = $defarray["Login"]["pass"];
$db = $defarray["Login"]["db"];
echo $host;
echo $user;
echo $pass;
echo $db;

$dbh = new Sqlexecutor($host, $user, $pass, $db);
$id = 5;
$s = new Login($dbh,$logger);
//$res = $s->confirmByID($id);
var_dump($s->getList());
echo $res;
// */
